#ifndef __NDSEXCEPT_H__
#define __NDSEXCEPT_H__
#include <exception>
#include <string>

namespace nds {
	class ndsexcept: public std::exception {
	public:
		ndsexcept(const char* what) throw() {
			whatHappened = std::string(what);
		}
		ndsexcept(std::string what) throw() {
			whatHappened = what;
		}
		~ndsexcept()throw(){}
		virtual const char* what() const throw() {
			return whatHappened.c_str();
		}

	private:
		std::string whatHappened;
	};
}; // namespace nds

#endif
